package org.heima.pojo;

import lombok.*;

import java.util.Objects;

@ToString
public class Car_G {
    private Long id;
    private String car_num;
    private String brand;
    private Double guide_price;
    private String produce_time;
    private String car_type;

    public Car_G() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCarNum() {
        return car_num;
    }

    public void setCarNum(String car_num) {
        this.car_num = car_num;
    }

    public void setCar_num(String car_num) {
        this.car_num = car_num;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Double getGuidePrice() {
        return guide_price;
    }

    public void setGuidePrice(Double guide_price) {
        this.guide_price = guide_price;
    }

    public void setGuide_price(Double guide_price) {
        this.guide_price = guide_price;
    }

    public String getProduceTime() {
        return produce_time;
    }

    public void setProduceTime(String produce_time) {
        this.produce_time = produce_time;
    }

    public void setProduce_time(String produce_time) {
        this.produce_time = produce_time;
    }

    public String getCarType() {
        return car_type;
    }

    public void setCarType(String car_type) {
        this.car_type = car_type;
    }

    public void setCar_type(String car_type) {
        this.car_type = car_type;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;
        Car_G car_g = (Car_G) object;
        return Objects.equals(id, car_g.id) && Objects.equals(car_num, car_g.car_num) && Objects.equals(brand, car_g.brand) && Objects.equals(guide_price, car_g.guide_price) && Objects.equals(produce_time, car_g.produce_time) && Objects.equals(car_type, car_g.car_type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, car_num, brand, guide_price, produce_time, car_type);
    }
}
